/**
 * Created by Joe on 2017/7/5 0005.
 */
$(document).ready(function () {

    var table = $('#DataTables_aftersale_audit').DataTable({
        "paging": true,
        "searching": true,
        "info": true,
        "ordering": true,
        "language": {
            "url": "../vendor/datatables/zh-cn.json"
        }
    });

    $('#DataTables_aftersale_audit tbody').on('click', 'tr', function () {
        var data = table.row(this).data();
        // toastr.info('您单击了"' + data[0] + '"的行');
    });



/*
    $('.btn-instorage').on('click', function () {
        layer.alert('入库确认成功', {
            skin: 'layui-layer-molv',
            title: '提示信息'
            , closeBtn: 0
            , anim: 4 //动画类型
        });
    });*/

    $('.btn-outstorage').on('click', function () {
        $("#outstorage-modal").modal("toggle");
    });

    $('.btn-audit-fail').on('click', function () {
        $("#auditfail-modal").modal("toggle");
    });

    $('.btn-audit-success').on('click', function () {
        $("#auditsuccess-modal").modal("toggle");
    });

    $('.btn-detail').on('click', function () {
        $("#detail-modal").modal("toggle");
    });

    $('.btn-instorage').on('click', function () {
        $("#inexpress-detail-modal").modal("toggle");
    });

    $('.btn-outstorage').on('click', function () {
        $("#outexpress-detail-modal").modal("toggle");
    });

});
